package com.eshopkeeper.service.sys;

import com.eshopkeeper.core.base.BaseService;
import com.eshopkeeper.model.sys.SysMenuBtn;
import com.eshopkeeper.provider.sys.ISysMenuBtnProvider;
import com.weibo.api.motan.config.springsupport.annotation.MotanReferer;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/30.
 */
@Service
public class SysMenuBtnService extends BaseService<ISysMenuBtnProvider, SysMenuBtn> {

    @MotanReferer(basicReferer = "clientBasicConfig")
    private ISysMenuBtnProvider sysMenuBtnProvider;
    /**
     * Title:查询二级菜单按钮列表信息
     * @param param
     * @return
     */
    public List<Map<String, Object>> queryMenuBtnList(Map<String,Object> param){
        return sysMenuBtnProvider.queryMenuBtnList(param);
    };

    /**
     * Title:添加菜单按钮信息
     * @param param
     */
    public void insertBtn(Map<String,Object> param){
        sysMenuBtnProvider.insertBtn(param);
    };

    /**
     * Title:修改菜单按钮信息
     * @param param
     */
    public void updateBtn(Map<String,Object> param){
        sysMenuBtnProvider.updateBtn(param);
    };

    /**
     * Title:启用或者禁用菜单按钮信息
     * @param param
     */
    public void deleteBtn(Map<String,Object> param){
        sysMenuBtnProvider.deleteBtn(param);
    };
}
